// 装饰器工厂函数
function decorato(val: boolean) {
  // do something ...
  return function (target: any) {
    target.isTestable = val;
  };
}

@decorato(false) // 等同于 decorato(false)(DecoratorFoo)
class DecoratorFoo {
  static isTestable?: boolean;
}
console.log(DecoratorFoo.isTestable); // false
